﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUGCOME.Model.Common
{
    /// <summary>
    /// 参数配置，数据实体对象
    ///
    /// @author mr.zhao
    /// @date 2021-09-29
    /// </summary>
    [SugarTable("sys_config", "配置表")]
    [Tenant("3")]
    public class SysConfig
    {
        /// <summary>
        /// 配置id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ConfigId { get; set; }
        /// <summary>
        /// 参数名称
        /// </summary>
        [SugarColumn(Length = 100)]
        public string ConfigName { get; set; }
        /// <summary>
        /// 参数键名
        /// </summary>
        [SugarColumn(Length = 100)]
        public string ConfigKey { get; set; }
        /// <summary>
        /// 参数键值
        /// </summary>
        [SugarColumn(Length = 500)]
        public string ConfigValue { get; set; }
        /// <summary>
        /// 系统内置（Y是 N否）
        /// </summary>
        [SugarColumn(Length = 1)]
        public string ConfigType { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
       
        public new string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public new DateTime CreateTime { get; set; } = DateTime.Now;



        /// <summary>
        /// 更新人
        /// </summary>
     
        public new string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
       
        public new DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        /// [JsonIgnore]
      
        public new string? Remark { get; set; }
    }
}
